import request from '@/utils/request.js'
// 会议列表
export const httpMeetingList = (params) => {
  return request({
    url: '/meeting/show',
    method: 'get',
    params,
  })
}
// 选择当前会议
export const httpSelectMeeting = (params) => {
  return request({
    url: '/meeting/select',
    method: 'get',
    params,
  })
}
// 参会人员
export const httpGetMeetingPeoples = (params) => {
  return request({
    url: '/attendee/search',
    method: 'get',
    params,
  })
}

// 修改会议
export const httpUpdateMeeting = (data) => {
  return request({
    url: '/meeting/update',
    method: 'post',
    data,
  })
}
// 删除会议
export const httpdeleteMeeting = (data) => {
  return request({
    url: '/meeting/del',
    method: 'post',
    data,
  })
}
// 新增会议
export const httpCreateMeeting = (data) => {
  return request({
    url: '/meeting/add',
    method: 'post',
    data,
  })
}
// 新增会议
export const deleteAudioFile = (data) => {
  return request({
    url: '/audio/delete',
    method: 'post',
    data,
  })
}

// 转换后数据 meeting_id
export const showAfterTranslateList = (data) => {
  return request({
    url: '/scripts/show',
    method: 'post',
    data,
  })
}

// 更新转换后数据
export const updateMeetingText = (data) => {
  return request({
    url: '/scripts/update',
    method: 'post',
    data,
  })
}
// 保存转换后数据
export const saveMeetingText = (data) => {
  return request({
    url: '/scripts/save',
    method: 'post',
    data,
  })
}
// 保存转换后数据
export const generateText = (data) => {
  return request({
    url: '/summary/generate',
    method: 'post',
    data,
  })
}
// 保存会议总结
export const saveGenerateText = (data) => {
  return request({
    url: '/summary/save',
    method: 'post',
    data,
  })
}
// 查看会议总结
export const viewGenerateText = (data) => {
  return request({
    url: '/summary/select',
    method: 'post',
    data,
  })
}
